import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    name: 'home',
    path: '/',
    component: () => import('@/views/YardView')
  },
  {
    name: 'yardView',
    path: '/yard',
    component: () => import('@/views/YardView')
  },
  {
    name: 'cuboidDemo',
    path: '/cuboidDemo',
    component: () => import('@/views/CuboidDemo')
  }
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
